package spring.cloud.service.task.domain.zooKeeperAndNamespace;


import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import spring.cloud.service.task.dto.ZooKeeperDto;
import spring.cloud.tasks.common.curator.CuratorInfo;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Setter
@Getter
public class ZooKeeper extends ZooKeeperDto {
    private boolean online;
    private boolean statusFlag;
    private List<CuratorInfo> curatorInfoList = new ArrayList<CuratorInfo>();

    public void updateStatusFlag() {
        setStatusFlag("Y".equals(status));
    }
}
